<link rel="stylesheet" href="/styles/thickbox.css" />
<script type="text/javascript" src="/scripts/thickbox.js"></script>
<div class="ModuleBlock">
<h1>
<label>Messages</label>
<div>
<a href="/expressions/index/anonymous/5"><img src="/images/SettingsIcon.png" border="0" alt="Settings" title="Settings" align="top" class="SetIcon"/></a>
<a href="#"><img src="/images/pie-chartIcon.png" alt="Activity Summary" width="14" height="14"  border="0"  align="top" class="SetIcon" title="Activity Summary"/></a>
</div>
<div class="wid186">
<input type="text" value="search" name="serValue" id="serValue" onfocus="clearField(this.id,'search');" onblur="addValuetoField(this.id,'search');" /><a href="javascript:void(0);" class="wht_bt" onclick="showSearchSection();"><img src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a>
</div>

</h1>
<div class="clear"></div>
<ul class="ModuleMenu">
<li><a href="/expressions/index/inbox/1" class="<?php echo $ctx->inboxactive; ?>">Inbox</a> </li>
<li><a href="javascript:void(0);" onclick="compose();" >Compose</a> </li>
<li><a href="/expressions/index/sent/2" class="<?php echo $ctx->sentactive; ?>">Sent</a></li>
<li><a href="/expressions/index/drafts/3" class="<?php echo $ctx->draftactive; ?>">Draft</a> </li>
<li><a href="/expressions/index/trash/4" class="<?php echo $ctx->trashactive; ?>">Trash</a> </li>
</ul>
<div class="clear hig20"></div>


<div class="ModuleHig">

<div class="blkCont" id="listContent">
				<?php if(is_array($ctx->getExpressions['result']) && count($ctx->getExpressions['result'])>0) { ?>
				
					<tal:block tal:content="structure php: this.partial('/index/message.html')"/>
				
				<? } else { ?>
					<p style="padding:50px 50px"><b><center>You don't have Messages</center></b></p>
				<? } ?>

</div>
</div>
<div id="downPagerId" class="paginat" style="padding-right:15px;"></div>
<div class="clear"></div>
</div>
<script type="text/javascript">
//<![CDATA[
function changeStatusFavorite(trigger_id,status)
{
	//alert(trigger_id+"and"+status);return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "trigger_id="+trigger_id+"&status="+status+"&type=expressions",
			    url: "/triggers/index/favorite/",
			    success: function(data){
					location.reload();					
				}
			});
}
function compose()
{
	//alert(val);return false;
	tb_show('Compose','/expressions/index/composenew?&height=480&width=650','');
}
 function clearField(id,itemvalue)
{
	if($("#"+id).val()==itemvalue){
		$("#"+id).val('');
	}
}
function addValuetoField(id,itemvalue)
{
	if($("#"+id).val()==''){
		$("#"+id).val(itemvalue);
	}
}
//]]>
</script>